package com.zeus.service;

import com.zeus.pojo.AnswerOpt;
import com.zeus.pojo.AnswerTxt;
import com.zeus.pojo.Admin;
import com.zeus.pojo.Survey;

import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/3/30 19:07
 */
public interface SurveyService {

    public int create(Survey pi);

    public int deleteBatch(String ids);

    public int delete(Integer id);

    public int update(Survey survey);

    public List<Survey> query(Survey survey);

    public List<Survey> queryAll(Survey survey);

    public Survey detail(Integer id);

    public int count(Survey survey);

    public List<AnswerOpt> queryAnswerOpt(AnswerOpt answerOpt);

    public void updateState();

    public Integer submit(List<AnswerOpt> opts, List<AnswerTxt> txts);

}
